package com.air.airbnb.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 图片表
 * </p>
 *
 * @author zhihuian
 * @since 2018-12-06
 */
@TableName("airbnb_image")
public class AirbnbImage extends Model<AirbnbImage> {

    private static final long serialVersionUID = 1L;

    /**
     * 图片id
     */
    @TableId(value = "image_id", type = IdType.AUTO)
    private Integer imageId;
    /**
     * 图片路径
     */
    @TableField("image_url")
    private String imageUrl;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Integer getImageId() {
        return imageId;
    }

    public void setImageId(Integer imageId) {
        this.imageId = imageId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.imageId;
    }

    @Override
    public String toString() {
        return "AirbnbImage{" +
        ", imageId=" + imageId +
        ", imageUrl=" + imageUrl +
        ", createTime=" + createTime +
        "}";
    }
}
